from django.urls import path
from user import user_views

urlpatterns = [
    # url ########################################
    path('login', user_views.login),
    path('add_user', user_views.add_user),
    path('del_user/<uid>', user_views.del_user),
    path('update_user/<uid>', user_views.update_user),
    path('get_user_info/<uid>', user_views.get_user_info),
    path('get_user_list', user_views.get_user_list),
    path('export_user_list', user_views.export_user_list),

    path('add_role', user_views.add_role),
    path('del_role/<rid>', user_views.del_role),
    path('update_role/<rid>', user_views.update_role),
    path('get_role_list', user_views.get_role_list),

    path('add_menu', user_views.add_menu),
    path('del_menu/<mid>', user_views.del_menu),
    path('update_menu/<mid>', user_views.update_menu),
    path('get_menu_list', user_views.get_menu_list),
    path('get_user_menu_by_role_id', user_views.get_user_menu_by_role_id),

    path('get_permissions', user_views.get_permissions),
    path('add_permission', user_views.add_permission),
    path('request_permission', user_views.request_permission),
    path('get_requests', user_views.get_requests),
    path('approve_request', user_views.approve_request),

    path('get_records', user_views.get_records),

    # # all not defined url is match this url
    # path('', user_views.custom_page_not_found)
]
